﻿using System.ComponentModel.DataAnnotations;

namespace CommonManagement
{
    /// <summary>
    /// 登录数据传输对象
    /// </summary>
    public class LoginDto
    {
        [Display(Name = "用户名")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string UserName { get; set; }

        [Display(Name = "密码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Password { get; set; }
    }
}